require("../css/commCss/normalize.less");
require("../css/commCss/reset.less");
require("../css/commCss/property.less");
require("../css/commCss/basic.less");
require("animate.css");
require("../css/ad.less");

//文档加载事件
document.addEventListener("DOMContentLoaded", function () {
  /* 获取元素 */
  const timeId = document.querySelector("#timeId");

  /* 倒计时 */
  function setTimeFive() {
    let time = 5;
    setInterval(function () {
      --time; //自减
      timeId.textContent = time + "s"; //渲染到页面中

      if (time <= 1) {
        location.href = "./login.html";
      }
    }, 1000);
  }
  setTimeFive();
});
